package Thread;

class MyRunnable1 implements Runnable{
    @Override
    public void run() {
        System.out.println("hello t");
    }
}
public class Demo2 {
    public static void main(String[] args) {
        MyRunnable1 m = new MyRunnable1();
        Thread t = new Thread(m);
        t.start();
        System.out.println("hello main");
    }

}
